<?php

class Application_Model_Shop extends Application_Model_DomainObject{

    protected $_id;
    
    protected $_isTaobao;
    
    protected $_name;
    
    protected $_url;
    
    
    
    /**
     * 根据店铺名称返回一个店铺
     * @param string $name 
     * @return Application_Model_Shop
     */
    public static function getByName($name){
        $db = new Application_Model_DbTable_Shop();
        
        return $db->queryOne(array('name'=>$name));
    }
}